Skip to content

Conversation

@afck
Copy link
Contributor

@afck afck commented Nov 6, 2025

Motivation

This is the result after a few discussions about what wallet show should look like.

Proposal

Add separators between the chains. Format everything in a "Key: Value" style.

Test Plan

Sample output:

2025-11-06T16:46:41.842672Z  INFO linera: Reading wallet from file: /tmp/.tmp6RClv1/wallet_0.json
2025-11-06T16:46:41.843635Z  INFO linera_service::wallet: Found 4 chains
-----------------------
Chain ID:             7471c597d573ef4d53934b9fcc6a05b9d46cb3718244d01ff817234ac2ae8c28
Tags:                 DEFAULT, ADMIN
Parent chain:         -
Default owner:        0x227d131b5f2e3987daf184f2d22af7e7e0f174d2baca1228a45f12be11e80a5c
Timestamp:            2025-11-06 16:46:37.399799
Blocks:               1
Epoch:                0
Latest block hash:    718814dae46334008efb769d5c24521c879cd756bb600c2bb56b09c1609d4c52
-----------------------
Chain ID:             5d719d9ace5441bdd4e4f7469fb3335445813935fdc2acc0dff60162642f2787
Parent chain:         -
Default owner:        0x929139f3c9b52dac48795038b7427aa5d07333718f74de7ea21c40fc28c11ae6
Timestamp:            2025-11-06 16:46:22.179469
Blocks:               0
Epoch:                0
-----------------------

Release Plan

  • These changes should be backported to testnet_conway, then
    • be released in a new SDK.

Links

Some(ChainOrigin::Root(i)) => format!("Root Chain {i}"),
_ => "Child Chain".to_string(),
println!("-----------------------");
println!(" {:<20} {}", "Chain ID:", self.user_chain.chain_id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could almost remove the indentation if we wanted now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you prefer that?

Do you mean remove the two leading spaces, or remove the alignment of the values?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the leading spaces

@afck afck added this pull request to the merge queue Nov 7, 2025
Merged via the queue into linera-io:main with commit 473136b Nov 7, 2025
32 checks passed
@afck afck deleted the wallet-show2 branch November 7, 2025 10:13
afck added a commit to afck/linera-protocol that referenced this pull request Nov 7, 2025
This is the result after a few discussions about what `wallet show`
should look like.

Add separators between the chains. Format everything in a "Key: Value"
style.

Sample output:

```
2025-11-06T16:46:41.842672Z  INFO linera: Reading wallet from file: /tmp/.tmp6RClv1/wallet_0.json
2025-11-06T16:46:41.843635Z  INFO linera_service::wallet: Found 4 chains
-----------------------
  Chain ID:             7471c597d573ef4d53934b9fcc6a05b9d46cb3718244d01ff817234ac2ae8c28
  Tags:                 DEFAULT, ADMIN
  Parent chain:         -
  Default owner:        0x227d131b5f2e3987daf184f2d22af7e7e0f174d2baca1228a45f12be11e80a5c
  Timestamp:            2025-11-06 16:46:37.399799
  Blocks:               1
  Epoch:                0
  Latest block hash:    718814dae46334008efb769d5c24521c879cd756bb600c2bb56b09c1609d4c52
-----------------------
  Chain ID:             5d719d9ace5441bdd4e4f7469fb3335445813935fdc2acc0dff60162642f2787
  Parent chain:         -
  Default owner:        0x929139f3c9b52dac48795038b7427aa5d07333718f74de7ea21c40fc28c11ae6
  Timestamp:            2025-11-06 16:46:22.179469
  Blocks:               0
  Epoch:                0
-----------------------
```

- These changes should be backported to `testnet_conway`, then
    - be released in a new SDK.

- Previous `wallet show` change:
linera-io#4642
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
ma2bd pushed a commit that referenced this pull request Nov 7, 2025
This is the result after a few discussions about what `wallet show`
should look like.

Add separators between the chains. Format everything in a "Key: Value"
style.

Sample output:

```
2025-11-06T16:46:41.842672Z  INFO linera: Reading wallet from file: /tmp/.tmp6RClv1/wallet_0.json
2025-11-06T16:46:41.843635Z  INFO linera_service::wallet: Found 4 chains
-----------------------
  Chain ID:             7471c597d573ef4d53934b9fcc6a05b9d46cb3718244d01ff817234ac2ae8c28
  Tags:                 DEFAULT, ADMIN
  Parent chain:         -
  Default owner:        0x227d131b5f2e3987daf184f2d22af7e7e0f174d2baca1228a45f12be11e80a5c
  Timestamp:            2025-11-06 16:46:37.399799
  Blocks:               1
  Epoch:                0
  Latest block hash:    718814dae46334008efb769d5c24521c879cd756bb600c2bb56b09c1609d4c52
-----------------------
  Chain ID:             5d719d9ace5441bdd4e4f7469fb3335445813935fdc2acc0dff60162642f2787
  Parent chain:         -
  Default owner:        0x929139f3c9b52dac48795038b7427aa5d07333718f74de7ea21c40fc28c11ae6
  Timestamp:            2025-11-06 16:46:22.179469
  Blocks:               0
  Epoch:                0
-----------------------
```

- These changes should be backported to `testnet_conway`, then
    - be released in a new SDK.

- Previous `wallet show` change:
#4642
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants